/***************************************************************************
 *   Copyright 2010 long2015 liu <long2015@gmail.com>
 *
 *   This program is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU General Public
 *   License as published by the Free Software Foundation; either
 *   version 2 of the License, or (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 ***************************************************************************/

#include<QtGui>
#include<qapplication.h>
#include<QPixmap>

class Rwindow : public QWidget
{
    void paintEvent(QPaintEvent *);
};
void Rwindow::paintEvent(QPaintEvent *)
{
    QPainter paint(this);
    paint.setBrush(QBrush(Qt::yellow,Qt::SolidPattern));
    paint.drawEllipse(QPoint(120,80),25,50);
    paint.drawEllipse(QPoint(120,140),40,80);
    QPixmap pix(":/bg/android.jpg");
    paint.drawPixmap(0,0,240,640,pix);
}



int main(int argc, char *argv[])
{
    QApplication app(argc,argv);
    Rwindow window;
    window.resize(640,480);
    window.show();

    app.exec();
}

